import {
    legacy_createStore, // create_store / createStore
    combineReducers,
    applyMiddleware,
} from 'redux';
import user from './userstates/recuders/index';
import thunk from 'redux-thunk';

const reducers = {
    // head,
    user,
    // homepage,
};



const rootReducer = combineReducers(reducers);

// 用合并好的reducer创建总store并导出
export default legacy_createStore(rootReducer, applyMiddleware(thunk));
